// import { getAsyncComponent } from 'utils/reactUtil'
// const Home = getAsyncComponent(() => import(/* webpackChunkName: 'pageHome' */ 'containers/Home'))
// const Found = getAsyncComponent(() => import(/* webpackChunkName: 'pageFound' */ 'containers/Found'))
// const Mime = getAsyncComponent(() => import(/* webpackChunkName: 'pageMime' */ 'containers/Mime'))
// const Radio = getAsyncComponent(() => import(/* webpackChunkName: 'pageRadio' */ 'containers/Radio'))
// const Search = getAsyncComponent(() => import(/* webpackChunkName: 'pageSearch' */ 'containers/Search'))
// const PlaylistDetail = getAsyncComponent(() => import(/* webpackChunkName: 'pagePlaylistDetail' */ 'containers/PlaylistDetail'))
// const RadioDetail = getAsyncComponent(() => import(/* webpackChunkName: 'pageRadioDetail' */ 'containers/RadioDetail'))
import Home from '../components/home/Home'
import Recommend from '../components/home/recommend/Recommend'
import Rank from '../components/home/rank/Rank'
import Search from '../components/home/search/Search'


// redux container里面的组件
import RankDetail from '../store/containers/Container_Ranking'
import Play from '../store/containers/Container_Play'

const routeConfig = [
    {
        path: '/home',
        component: Home,
        routes: [
            {
                path: '/',
                component: Recommend,
                exact: true
            },
            {
                path: '/rank',
                component: Rank
            },
            {
                path: '/search',
                component: Search
            }
        ]
    },
    {
        path: '/rankDetail/:id',
        component: RankDetail
    },
    {
        path: '/play',
        component: Play
    }
]

export default routeConfig